INCS =
LIBS = -lm -lgmp
CFLAGS = -ansi -pedantic -Wall -O3 ${INCS}
LDFLAGS = -s ${LIBS}
CC = cc

all: borwein-seq borwein-par

borwein-seq: seq.c
	@echo CC -o $@
	@${CC} ${CFLAGS} -o $@ ${LDFLAGS} $<

borwein-par: par.c
	@echo CC -o $@
	@${CC} ${CFLAGS} -o $@ ${LDFLAGS} -lpthread $<

clean:
	@echo cleaning
	@rm -rf borwein-seq borwein-par
